<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	int i=1;
 %>
<table width="100%" border="0" class=tablecolor2 id="taskDetailListId">
	<tr>
		<td align="center" bgcolor="D6E3FA" width="5%">
			序号
		</td>
		<td align="center" bgcolor="D6E3FA" width="9%">
			办理步骤
		</td>
		<td align="center" bgcolor="D6E3FA" width="24%">
			办理事项
		</td>
		<td align="center" bgcolor="D6E3FA" width="30%">
			办理意见
		</td>
		<td align="center" bgcolor="D6E3FA" width="8%">
			办理人员
		</td>
		<td align="center" bgcolor="D6E3FA" width="12%">
			到达时间
		</td>																
		<td align="center" bgcolor="D6E3FA" width="12%">
			办理时间
		</td>																
	</tr>
	<c:forEach items="${prodAdvChecklist }" var="prodAdvCheckOne">
	<tr>
		<td style="text-align: center"><%=i++ %></td>
		<td>${prodAdvCheckOne.processStep.name}</td>
		<td>${prodAdvCheckOne.matters}
		<c:if test="${fn:length(prodAdvCheckOne.reqProgresses)>0 }">
		<div>【进展信息】</div>
		
		<ul style="margin: 0px;display: inline;">
			<c:forEach items="${prodAdvCheckOne.reqProgresses }" var="reqProgressesOne" varStatus="jx">
			<li style="padding: 2px;list-style: none;">
				<font color="blue" style="font-weight: bold;">${jx.index+1 }、</font>【<fmt:formatDate value="${reqProgressesOne.createTime }" pattern="yyyy-MM-dd HH:mm"/>】${reqProgressesOne.reqProg }，
				完成<font color="red"> ${reqProgressesOne.percent }% </font>。
			</li>
			</c:forEach>
		</ul>
		</c:if>
		<c:if test="${fn:length(prodAdvCheckOne.reqDelayes)>0 }">
		<div>【延迟信息】</div>
		<ul style="margin: 0px;display: inline;">
			<c:forEach items="${prodAdvCheckOne.reqDelayes }" var="reqDelayeOne" varStatus="jx">
			<li style="padding: 2px;list-style: none;">
				<font color="blue" style="font-weight: bold;">${jx.index+1 }、</font>【<fmt:formatDate value="${reqDelayeOne.createTime }" pattern="yyyy-MM-dd HH:mm"/>】${reqDelayeOne.delayReason }，
				延迟时长<font color="red" style="font-weight: bold;"> ${reqDelayeOne.delayTime } </font>周。
			</li>
			</c:forEach>
		</ul>
		</c:if>		
		</td>
		<td>${prodAdvCheckOne.transactInfo}</td>
		<td style="text-align: center">${prodAdvCheckOne.transactor.name}</td>
		<td><fmt:formatDate value="${prodAdvCheckOne.receiveTime }" pattern="yyyy-MM-dd HH:mm"/></td>
		<td><fmt:formatDate value="${prodAdvCheckOne.transactTime }" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>	
	
	<c:forEach items="${taskView.flowTaskList}" var="flowTaskOne" varStatus="j">
	<tr>
		<td style="text-align: center"><%=i++ %></td>
		<td>${flowTaskOne.processStep.name }</td>
		<td>${flowTaskOne.matters }
		<c:if test="${fn:length(flowTaskOne.reqProgresses)>0 }">
		<div>【进展信息】</div>
		
		<ul style="margin: 0px;display: inline;">
			<c:forEach items="${flowTaskOne.reqProgresses }" var="reqProgressesOne" varStatus="jx">
			<li style="padding: 2px;list-style: none;">
				<font color="blue" style="font-weight: bold;">${jx.index+1 }、</font>【<fmt:formatDate value="${reqProgressesOne.createTime }" pattern="yyyy-MM-dd HH:mm"/>】${reqProgressesOne.reqProg }，
				完成<font color="red"> ${reqProgressesOne.percent }% </font>。
			</li>
			</c:forEach>
		</ul>
		</c:if>
		<c:if test="${fn:length(flowTaskOne.reqDelayes)>0 }">
		<div>【延迟信息】</div>
		<ul style="margin: 0px;display: inline;">
			<c:forEach items="${flowTaskOne.reqDelayes }" var="reqDelayeOne" varStatus="jx">
			<li style="padding: 2px;list-style: none;">
				<font color="blue" style="font-weight: bold;">${jx.index+1 }、</font>【<fmt:formatDate value="${reqDelayeOne.createTime }" pattern="yyyy-MM-dd HH:mm"/>】${reqDelayeOne.delayReason }，
				延迟时长<font color="red" style="font-weight: bold;"> ${reqDelayeOne.delayTime } </font>周。
			</li>
			</c:forEach>
		</ul>
		</c:if>		
		</td>
		<td>${flowTaskOne.transactInfo}</td>
		<td style="text-align: center">${flowTaskOne.transactor.name}</td>
		<td><fmt:formatDate value="${flowTaskOne.receiveTime }" pattern="yyyy-MM-dd HH:mm"/></td>
		<td><fmt:formatDate value="${flowTaskOne.transactTime }" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
</table>

